package com.guaoran.micro.services.spring.boot.starter.format;

import com.alibaba.fastjson.JSONObject;
import com.guaoran.micro.services.spring.boot.starter.service.FormatProcessor;

/**
 * @Author gucheng
 * @Description json 格式处理类
 * 2019-07-10 13:58
 */
public class JsonFormatProcessor implements FormatProcessor {

    @Override
    public String getString(Object object) {
        System.out.println("JsonFormatProcessor...");
        return "JsonFormatProcessor..." + JSONObject.toJSONString(object);
    }
}
